package com.zhuangyuan.cloud.data.service;

import com.zhuangyuan.cloud.data.entities.BaseEntity;

import java.util.List;
import java.util.Map;

public interface BaseService {
    <T extends BaseEntity> boolean exists(Class<T> clazz, Map<String, Object> propValue) throws Exception;
    <T extends BaseEntity>  T get(String id);
    <T extends BaseEntity>List<T> list();
            <T extends BaseEntity>

    boolean delete(T obj);

    <T extends BaseEntity> T update(T obj);

    <T extends BaseEntity> T save(T entity);
}
